package demo.pattern.factory.method;

import demo.pattern.factory.entity.Mouse;

public class MethodTest {
    public static void main(String[] args) {
        MouseFactory dellMouseFactory = new DellMouseFactoryImpl();
        Mouse mouse1 = dellMouseFactory.createMouse();
        mouse1.sayMouse();

        MouseFactory appleMouseFactory = new AppleMouseFactoryImpl();
        Mouse mouse2 = appleMouseFactory.createMouse();
        mouse2.sayMouse();
    }
}
